package com.rfc.jdave;

import org.junit.runner.RunWith;
import jdave.junit4.JDaveRunner;
import jdave.Specification;

@RunWith(JDaveRunner.class)
public class AccountSpecs extends Specification<Account>
{
    public class WhenWithdrawingMoney
    {
        public void shouldDecreaseAccountBalance() {
            Account account = new Account(100);
            account.withdraw(25);
            specify(account.getBalance(), should.equal(75));
        }
    }
}